﻿using System;
using System.Runtime.Serialization;
using Grundy.Common;

namespace Grundy.Message
{
    
    [DataContract]
    public class InvalidRequestError : Error
    {
        public InvalidRequestError(){}
        
        public InvalidRequestError(Request request)
        {
            Request = request;
            Message = "Invalid request type.";
        }

        [DataMember]
        public Request Request { get; set; }
    }
}